<?
class Raca {

	public $data = array();

	function __construct (
		$nome, $nome_art, $registo_img, $portrait_img, $user_register, 
		$hp, $mana, $estamina, $moral,
		$forca, $pontaria, $evasao, $inteligencia, $carisma, $visao,
		$dano, $armadura
	) {
		$this->data['nome']				= $nome;
		$this->data['raca_nome_art']	= $nome_art;
		$this->data['registo_img']		= $registo_img;
		$this->data['portrait_img']		= $portrait_img;
		$this->data['user_register']	= $user_register;
		
		$this->data['hp']		= $hp;
		$this->data['mana']		= $mana;
		$this->data['estamina'] = $estamina;
		$this->data['moral']	= $moral;
		
		$this->data['forca']			= $forca;
		$this->data['pontaria']			= $pontaria;
		$this->data['evasao']			= $evasao;
		$this->data['inteligencia']		= $inteligencia;
		$this->data['estamina']			= $estamina;
		$this->data['carisma']			= $carisma;
		$this->data['visao']			= $visao;
		
		$this->data['dano']		= $dano;
		$this->data['armadura'] = $armadura;
	}
	
	public function getValue($key) {
		return $this->data[$key];
	}
	
	public function toArray() {
		return $this->data;
	}
}
?>